import { baseUrl } from '@/utils/global'

export default {
    method: 'get',
    // 基础url前缀
    baseUrl: baseUrl,
    // 请求头信息
    headers: {
        'Content-Type': "'Content-Type': 'application/json" //"multipart/form-data" ///"application/x-www-form-urlencoded" //'application/json;charset=UTF-8'
        // Cookie: "d483e088-d501-4351-b526-8f2c79059020"
        // "Access-Control-Allow-Origin": "http://localhost:80"
        // "Access-Control-Allow-Credentials": true,

        // "Access-Control-Allow-Methods": "*",
        // "Access-Control-Allow-Headers": "Content-Type,Accesss-Token",
        // "Access-Control-Expose-Headers": "*",
        // "Accept-Encoding": "gzip, deflate",
        // "Accept-Language": "zh-CN,zh;q=0.9",
        // "Cache-Control": "max-age=0",
        // Connection: "keep-alive"
    },
    // 参数
    data: {},
    // 设置超时时间
    timeout: 10000,
    // 携带凭证
    withCredentials: false,
    // 返回数据类型
    responseType: 'json'
    //crossDomain: true
}
